'use strict';

module.exports = app => {
  const {
    INTEGER,
    DATE,
    TEXT,
    DECIMAL,
  } = app.Sequelize;

  return app.model.define('order', {
    id: {
      type: INTEGER,
      primaryKey: true,
    },
    description: TEXT,
    amount: DECIMAL(10, 2),
    status: INTEGER,
    created_at: DATE,
    updated_at: DATE,
  });
};
